<textarea type="text" id="<?php echo $id;?>" name="<?php echo $name;?>" style="width:<?php echo isset($param['width']) ? $param['width'] : '90%'?>; height:<?php echo isset($param['height']) ? $param['height'] : '400px'?>;"><?php echo $value;?></textarea>

<script type="text/javascript">
var ue_<?php echo $id;?>;
$(function(){
	var ue_<?php echo $id;?>_getContentLength = false;
	ue_<?php echo $id;?> = UE.getEditor('<?php echo $id;?>',
	{
        serverUrl:"<?php echo \Yii::$app->urlManager->createUrl('/ueditor/index');?>",
		formData:<?php echo json_encode(array('baseurl'=>'false', '_csrf'=>Yii::$app->request->csrfToken));?>,
    });
	ue_<?php echo $id;?>.ready(function() {
		ue_<?php echo $id;?>.execCommand('serverparam', {
        'fullpath': true
    });
		$("#<?php echo $id;?>").next('textarea').show().css({'width':0, height:0, 'visibility': 'hidden'});
	});
	//这里监听编辑器 如果有内容输入，隐藏输入内容的提示
	ue_<?php echo $id;?>.addListener( 'contentChange', function( editor ) {
		(ue_<?php echo $id;?>.getContentLength(true)) ? $('#error-content').hide() : $('#error-content').show();;
	});
});
</script>
